<script setup lang="ts">
import { ref } from "vue";
import { QForm, type FormItemRows } from "@meetjs/element-plus-kit";

const FormValue = ref({

});

const mothodType = [{ label: "POST", value: "POST" }, { label: "GET", value: "GET" }];
const formRef = ref<any>(null);
const formOptions = ref<FormItemRows[]>([
  { type: "input", label: "接口名称", prop: "name" },
  { type: "select", label: "接口类型", prop: "region", options: mothodType, },
  { type: "input", label: "接口路径", prop: "path" },
	{ type: "input", label: "Content-Type", prop: "path" },
	{ type: "textarea", label: "备注", prop: "notes" },

]);
</script>

<template>
  <QForm ref="formRef" label-width="125px"  :model="FormValue" :formOptions="formOptions"
         :buttons="['submit', 'reset']" @submit="onSearch">
  </QForm>
</template>

<style scoped>

</style>
